package org.jeecg.modules.com.pointoperation.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.com.pointoperation.entity.PackageInfo;
import org.jeecg.modules.com.pointoperation.mapper.PackageInfoMapper;
import org.jeecg.modules.com.pointoperation.service.IPackageInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PackageInfoServiceImpl implements IPackageInfoService {

    @Autowired
    private PackageInfoMapper packageInfoMapper;

    @DS(value = "multi-datasource2")
    @Override
    public void insertPackageInfo(PackageInfo packageInfo) {
        packageInfoMapper.insert(packageInfo);
    }

    @DS(value = "multi-datasource3")
    @Override
    public void insertPackageInfo2(PackageInfo packageInfo) {
        packageInfoMapper.insert(packageInfo);
    }
}
